import request from '../../utils/request';
import { OnionUtils } from '../../utils/onion-utils';

//配置信息列表查询
export const doFindConfig = queryData => {
    return request({
        url: '/api/configic/config/listPage',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'queryData'},
        buildType : 'queryData',
        data: queryData
    });
};

//获取配置信息
export const doGetConfig = formData => {
	return request({
        url: '/api/configic/config/get',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        buildType : 'formData',
        data: formData
	});
};

//保存配置信息
export const doSaveConfig = formData => {
	return request({
        url: '/api/configic/config/save',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        buildType : 'formData',
        data: formData
	});
};

//删除配置信息
export const doDeleteConfig = formData => {
	return request({
        url: '/api/configic/config/delete',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        buildType : 'formData',
        data: formData
	});
};